home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / nshellmegasource1.50 / mega src / lib / regexp.proto.h < prev    next >
Encoding:
Text File  |  1994-11-26  |  837 b   |  31 lines  |  [TEXT/KAHL]

  1. /*
  2.  =
  3.  = This file was originally "regproto.h", by Henry Spencer.
  4.  =
  5.  = See the "regexp.c" in this package for more information.
  6.  =
  7. */
  8.  
  9. // Routines found in regexp.c:
  10.  
  11. regexp *regcomp(char *exp);
  12. long regexec(register regexp *prog, register char *string);
  13.  
  14. static char *reg(long paren, long *flagp);
  15. static char *regbranch(long *flagp);
  16. static char *regpiece(long *flagp);
  17. static char *regatom(long *flagp);
  18. static char *regnode(char op);
  19. static void regc(char b);
  20. static void reginsert(char op, char *opnd);
  21. static void regtail(char *p, char *val);
  22. static void regoptail(char *p, char *val);
  23. static long regtry(regexp *prog, char *string);
  24. static long regmatch(char *prog);
  25. static long regrepeat(char *p);
  26. static char *regnext(register char *p);
  27.  
  28. // Define this in your calling module, so you can report errors
  29.  
  30. void regerror(char *s);
  31.